package com.etone.smartAudit.dto.accountInfo;

import com.etone.smartAudit.enums.AccountType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020/11/13
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "AccountInfoDTO", description = "账号信息表单")
public class AccountInfoDTO implements Serializable {

    @ApiModelProperty("服务器id")
    private Integer serverId;

    @ApiModelProperty("账号类型")
    @NotNull
    private AccountType type;

    @ApiModelProperty("账号")
    @NotNull
    private String account;

    @ApiModelProperty("密码")
    @NotNull
    private String password;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("数据库名称")
    private String databaseName;

    @ApiModelProperty("schema")
    private String schemaName;

    @ApiModelProperty("项目id")
    private Integer itemId;

    @ApiModelProperty("项目名称")
    private String itemName;

    @ApiModelProperty("端口号")
    private Integer port;

    @ApiModelProperty("是否是超级管理员")
    private Boolean isSupper;
}
